import request from '@/utils/index'


// 获取用户订单列表
export const reqUserOrder = (params) => {
    return request({
        url: '/member/order',
        method: 'GET',
        params
    })
}

// 获取详情页商品的信息
export const reqGetGoodsDetail = (id) => {
    return request({
        url: `/goods`,
        method: 'GET',
        params: {
            id
        }
    })
}

// 获取详情页热门商品信息
export const reqHotGoodsAPI = ({ id, type, limit = 3 }) => {
    return request({
        url: '/goods/hot',
        params: {
            id,
            type,
            limit
        }
    })
}